/** Created by CUIJA on 05-19-2017.*/
'use strict';

const angular = require('angular'),

      commonRoutes = require('./routes/auth.route'),
      componentService = require('./services/component.service'),
      
      headerbarController = require('./component/headerbar/headerbar.controller'),
      headerbarComponent = require('./component/headerbar/headerbar'),
      navbarController = require('./component/navbar/navbar.controller'),
      navbarComponent = require('./component/navbar/navbar'),
      
      authService = require('./services/auth.service'),
      authController = require('./controller/auth.controller')
      ;

const moduleName = 'common';

angular.module(moduleName, [])
  .config(commonRoutes)
  .factory('componentService', componentService)
  .factory('authService',authService)

  .component('headerbar', headerbarComponent)
  .controller('headerbarController', headerbarController)

  .component('navbar', navbarComponent)
  .controller('navbarController', navbarController)

  .controller('authController',authController)
;

module.exports = moduleName;